package net.crazyadam

import swing._
import java.awt.Graphics

/**
 *
 * @author joseph
 * @since 6/17/12 4:53 PM
 */

object ParkMap extends SimpleSwingApplication{
  def top= new MainFrame(){
    title="停車位地圖"
    peer.setSize(600,600)
    size=new Dimension(600,600)
    val button = new Button {
      text = "Click me"
    }
    val label = new Label {
      text = "No button clicks registered"
    }
    contents = new BoxPanel(Orientation.Vertical) {
      contents += button
      contents += label
      border = Swing.EmptyBorder(30, 30, 10, 30)
    }
    def paint(){
//      peer.getGraphics.fillOval()
      peer.repaint()
    }
  }

}
